<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import ="java.util.*,MemberController.MembersBean" %>
<jsp:useBean id = "user" class="MemberController.MembersBean" />

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/Main/Css/Fm_Join.css" />
<script src="/KOMORIUTA/Main/FirstMain/jquery.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Main/FirstMain/Fm_JScript.js" type="text/JavaScript"></script>
<style type="text/css">
	a:link, a:visited, a:active{color: white; text-decoration:none;}
	select {
	FONT-SIZE: 12pt; COLOR: black; LINE-HEIGHT: 160%; 
	}
	th{
	font-size:12px; 
	}
</style>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
ArrayList joinList = (ArrayList)session.getAttribute("joinList");
Iterator iter = joinList.iterator();
int i = 0;
%>
</head>
<body>
<form id="MemJoin" method="post" action="/KOMORIUTA/MemberJoinAction.do?action_code=join&num=3">

  <table cellspacing="0" cellpadding="0" width="100%" style="border-top: 2px solid #e5e5e5; border-bottom: 2px solid #e5e5e5; font-size: 14px;">
   		
   		<%

   	 	while ( iter.hasNext() ) {
   		i++;
   		user = (MembersBean)iter.next();
    	
    	%>
    	
    <tr> 
    
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
      	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >希望ID
      </th>
      <th align="left" width="38%" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
        <%=user.getMem_Nick() %>
      	<input type="hidden" name="Mem_Nick" value="<%=user.getMem_Nick() %>"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
      
    <tr class="odd"> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
      	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >パスワード
      </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
        <%=user.getMem_Pass() %>
        <input type="hidden" name="Mem_Pass" value="<%=user.getMem_Pass() %>"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
   <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
      	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >パスワード質問
	  </th>
      <% if(Integer.parseInt(user.getMem_Question())==1){ %>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
       &nbsp;&nbsp;&nbsp;&nbsp;
       <input type="text" readonly name="Mem_Question" value="初恋のお名前は？"/>
       </th>
      <%}else if(Integer.parseInt(user.getMem_Question())==2){ %>
      	 <th align="left" style="border-bottom: 1px solid #e5e5e5;">
      	&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="text" readonly name="Mem_Question" value="大切にする宝は？"/>
       </th>
      <%}else if(Integer.parseInt(user.getMem_Question())==3){%>
      	<th align="left" style="border-bottom: 1px solid #e5e5e5;">
       &nbsp;&nbsp;&nbsp;&nbsp;
       <input type="text" readonly name="Mem_Question" value="好きな色は？"/>
       </th>
      <%}else if(Integer.parseInt(user.getMem_Question())==4){ %>
      	<th align="left" style="border-bottom: 1px solid #e5e5e5;">
      	&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="text" readonly name="Mem_Question" value="ご両親の名前は？"/>
       </th>
      <%}else if(Integer.parseInt(user.getMem_Question())==5){%>
      	<th align="left" style="border-bottom: 1px solid #e5e5e5;">
       	&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="text" readonly name="Mem_Question" value="嫌いな食べ物は？"/>
       </th>
      <%} %>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
     	 <img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >パスワード答え
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
          <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="text" readonly name="Mem_Answer" value="<%=user.getMem_Answer() %>" />
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
     	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >種類
	  </th>
      <% if(user.getMem_Level() == 1){ %>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="hidden" name="Mem_Level" value="<%=user.getMem_Level() %>"/><font size="-1"><label for="ui_gender_male" ></label>求人側</font>
       </th>
      <% }else { %>
      	 <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
        <input type="hidden" name="Mem_Level" value="<%=user.getMem_Level() %>"/><font size="-1"><label for="ui_gender_male"></label>保育側</font>
       </th>
      <%} %>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >お名前(漢字)
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">&nbsp;お名前
		<%=user.getMem_NameK() %>
		<input type="hidden" name="Mem_NameK" value="<%=user.getMem_NameK() %>"/>
	  </th>
      <th colspan="1" align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
		全角文字にて入力してください
	  </th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >ふりがな
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">&nbsp;お名前
          <%=user.getMem_NameH() %>
          <input type="hidden" name="Mem_NameH" value="<%=user.getMem_NameH() %>"/>
		</th>
      <th colspan="1" align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
		全角文字にて入力してください
	  </th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
     	 <img alt="" src="<%=request.getContextPath() %>/Main/image/check_red.png" >生年月日
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <%=user.getMem_Year() %>年
          <%=user.getMem_Month() %>月
          <%=user.getMem_Day() %>日
   			 <input type="hidden" name="Mem_Year" value="<%=user.getMem_Year() %>"/>
   			  <input type="hidden" name="Mem_Month" value="<%=user.getMem_Month() %>"/>
   			   <input type="hidden" name="Mem_Day" value="<%=user.getMem_Day() %>"/>
   </th>
      <th colspan="1" align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
		※年は半角数字で西暦(4桁)を入力してください
	  </th>
    </tr>
    
    <tr> 
       <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
      	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >郵便番号
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="text" readonly  value="<%=user.getMem_Fpost() %>" name="Mem_Fpost" id="post1" size="5" maxlength="4"/>
          &nbsp;-&nbsp; 
          <input type="text" readonly  value="<%=user.getMem_Spost() %>" name="Mem_Spost" id="post2" size="5" maxlength="4"/>
       </th>
      <th colspan="1" align="left" style="border-bottom: 1px solid #e5e5e5; vertical-align: middle; ">
		※半角数字にて入力してください
	  </th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >ADDRESS1
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="text"    value="<%=user.getMem_Address1() %>" readonly  name="Mem_Address1" id="address1" size="30"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >ADDRESS2
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="text" readonly   value="<%=user.getMem_Address2() %>"  name="Mem_Address2" id="address2" size="30"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >電話番号
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input type="text"  readonly   value="<%=user.getMem_Phone() %>" name="Mem_Phone" id="phone" maxlength="20"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
      	<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >携帯番号
      </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input  readonly  type="text" value="<%=user.getMem_Mobile() %>" name="Mem_Mobile" id="mphone" maxlength="20"/>
        </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank.png" >FAX
	  </th>
      <th align="left" style="border-bottom: 1px solid #e5e5e5;">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input readonly  type="text" value="<%=user.getMem_Fax() %>" name="Mem_Fax" id="fax" maxlength="20"/>
      </th>
      <th colspan="1" style="border-bottom: 1px solid #e5e5e5;">&nbsp;</th>
    </tr>
    
    <tr> 
      <th scope="col" width="20%" bgcolor="#f9f9f9" height="30" align="left" style=" vertical-align: middle;  border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5">
		<img alt="" src="<%=request.getContextPath() %>/Main/image/check_gold.png" >E-MAIL
	  </th>
      <th align="left">
        <img alt="" src="<%=request.getContextPath() %>/Main/image/check_blank2.png">
          <input readonly  type="text" value="<%=user.getMem_Email() %>"  name="Mem_Email" id="email" maxlength="20"/>
      </th>
      <th colspan="1">&nbsp;</th>
    </tr>
<%} %>
 </table>
  
  <table align="center">
  	<tr>
    	<th>
    		<div id="Join" align="center"><a href="javascript:join()"><img alt="" src="<%=request.getContextPath() %>/Main/image/next.png"></img></a></div>
    	</th>
    	<th>
    		<div id="Cancel" align="center"><a href="javascript:history.go(-1)"><img alt="" src="<%=request.getContextPath() %>/Main/image/before.png"></img></a></div>
    	</th>
    </tr>
  </table>
</form>
</body>
</html>
